<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
.errorMessage {
	color: red;
	font-size: 10px;
}
</style>
</head>
<body>
	index.jsp page is executed through strust controller..

	<!-- 	<form action="loginAction.action" method="post">
		User Name : <input type="text" name="bean.userName"> <br>
		Password : <input type="password" name="bean.password"><br>
		Age :   <input type="text" name="bean.age"><br>
		
		 <input
			type="submit" value="Login">
	</form>
	 -->

	<s:form action="loginAction" method="post" enctype="multipart/form-data" >

		<s:fielderror name="userName"></s:fielderror>
		<s:textfield name="userName" label="User Name"></s:textfield>
		<s:password name="password" label="Password "></s:password>
		<s:textfield name="age" label="Age"></s:textfield>
		<s:file name="image" label="User Image"></s:file>
		<s:submit value="Login"></s:submit>
	</s:form>
   <s:form action="processData">	
	<s:submit action="processData.action" value="Process Data"></s:submit>
</s:form>
</body>
</html>